package com.rerun.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.rerun.entity.BlackList;
import com.rerun.entity.YoyoPark;
import org.apache.ibatis.annotations.Param;

/**
 * The interface Black list service.
 *
 * @author dax.
 * @version v1.0
 * @since 2017 /10/26 13:33
 */
public interface IBlackListService extends IService<BlackList> {
    /**
     * Select by member id and park id black list.
     *
     * @param memberId the member id
     * @param parkId   the park id
     * @return the black list
     */
    BlackList selectByMemberIdAndParkId(String memberId, long parkId);

    /**
     * Select page by member id list.
     *
     * @param page     the page
     * @param memberId the member id
     * @return the list
     */
    Page<YoyoPark> selectPageByMemberId(Page<YoyoPark> page, @Param("memberId") String memberId);
}
